package com.ubs.training.server.service;

import com.ubs.training.prod.server.service.LoggingService;
import com.ubs.training.server.dao.RatingAgencyDao;
import com.ubs.training.server.dao.model.RatingAgency;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: xubuntu
 * Date: 8/22/12
 * Time: 5:30 AM
 * To change this template use File | Settings | File Templates.
 */
@Service
public class RatingAgencyService {
    public static final String USER_REQUESTS_ALL_RATING_AGENCIES = "User requests all rating agencies";

    @Resource(name="hbmRatingAgencyDao")
    RatingAgencyDao  dao;


    public RatingAgencyDao   getDao() {
        return dao;
    }

    public void setDao(RatingAgencyDao   dao) {
        this.dao = dao;
    }

    public List<RatingAgency> getAllRatingAgencies() {
        return dao.getAll();
    }
}
